//
//  TTSBaseNavigationController.m
//  TTSVideo
//
//  Created by chenHR on 16/2/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TTSBaseNavigationController.h"

@interface TTSBaseNavigationController ()

@end

@implementation TTSBaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    self.navigationBar.translucent = NO;
    // 设置navigationBar的颜色
    self.navigationBar.barTintColor = [UIColor whiteColor];
    // 设置navigationBar 上字体颜色
    UIColor * color = [UIColor blackColor];
    //设置的是颜色，还可以设置shadow
    NSDictionary * homeDic =[NSDictionary dictionaryWithObject:color forKey:UITextAttributeTextColor];
    self.navigationBar.titleTextAttributes = homeDic;
    
    // 添加导航栏左侧按钮
//    UIImage *img = [UIImage imageNamed:@"iconfont-menu1"];
//    img = [img imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
//    UIButton *menuBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    [menuBtn setBackgroundImage:img forState:UIControlStateNormal];
//    menuBtn.frame = CGRectMake(0, 0, 28, 28);
//    [menuBtn addTarget:self action:@selector(menuBtnAction:) forControlEvents:UIControlEventTouchUpInside];
//    UIView *menuView = [[UIView alloc] initWithFrame:CGRectMake(14, 7, 28, 28)];
//    [menuView addSubview:menuBtn];
//    [self.navigationBar addSubview:menuView];
    
    // 添加导航栏中间标题
//    UIImageView *titleImgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"title"]];
//    titleImgView.frame = CGRectMake(142, 4, 100, 35);
//    [self.navigationBar addSubview:titleImgView];
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
